package com.neusoft.mapper;

import com.github.pagehelper.Page;
import com.neusoft.bean.RegisterBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface RegisterMapper {
    String selectMaxCaseNumber();

    Integer selectCountByEmployeeId(Integer doctorId);

    Integer insertRegister(Map<String, Object> register);

    Integer selectCountByEmployeeIdAndVS(Integer employeeId);

    Integer selectWaitCountByEmployeeIdAndVS(Integer employeeId);

    Page<Map<String, Object>> selectWaitPatientByPage(@Param("employeeId") Integer employeeId,
                                                      @Param("caseNumber") String caseNumber,
                                                      @Param("realName") String realName);
    RegisterBean selectWaitCheckPatient(@Param("registerId")Integer registerId, @Param("caseNumber")String caseNumber, @Param("realName")String realName);
    Page<Map<String,Object>> selectPatientPage(@Param("caseNumber")String caseNumber,
                                               @Param("realName")String realName);


}
